package top.yxf.mapstruct.dto;

import lombok.Data;

import java.util.Date;
import java.util.List;


/**
 * @author zw
 */
public class UserDto {

    private Integer userId;

    private String userName;

    private Date birth;

    private char gender;

    private List<HobbyDto> hobbyDtoList;

    private CarDto carDto;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public List<HobbyDto> getHobbyDtoList() {
        return hobbyDtoList;
    }

    public void setHobbyDtoList(List<HobbyDto> hobbyDtoList) {
        this.hobbyDtoList = hobbyDtoList;
    }

    public CarDto getCarDto() {
        return carDto;
    }

    public void setCarDto(CarDto carDto) {
        this.carDto = carDto;
    }

    @Override
    public String toString() {
        return "UserDto{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", birth=" + birth +
                ", gender=" + gender +
                ", hobbyDtoList=" + hobbyDtoList +
                ", carDto=" + carDto +
                '}';
    }
}
